-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Moves getUserDisplayName
outside from meteor app
#35031
base: develop
Are you sure you want to change the base?
Conversation
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35031 +/- ##
========================================
Coverage 59.17% 59.17%
========================================
Files 2822 2823 +1
Lines 68116 68109 -7
Branches 15144 15140 -4
========================================
- Hits 40310 40306 -4
+ Misses 24975 24973 -2
+ Partials 2831 2830 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
getUserDisplayName
outside from meteor appgetUserDisplayName
outside from meteor app
1c4c436
to
31ed52f
Compare
31ed52f
to
435f43e
Compare
@@ -264,3 +264,6 @@ export type AvatarServiceObject = { | |||
}; | |||
|
|||
export type AvatarObject = AvatarReset | AvatarUrlObj | FormData | AvatarServiceObject; | |||
|
|||
export const getUserDisplayName = (name: IUser['name'], username: IUser['username'], useRealName: boolean): string | undefined => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we tested the hook already, but can we add a unit test for this?
This PR currently has a merge conflict. Please resolve this and then re-add the |
Proposed changes (including videos or screenshots)
It moves the auxiliary
getUserDisplayName
function tocore-typings
anduseUserDisplayName
hook toui-client
in order to give more flexibility to use them outside from meteor appIssue(s)
Steps to test or reproduce
Further comments